// 小管理
const defaultState={
    cityName:'22'
}
export default (state=defaultState,action)=>{
    const newState=JSON.parse(JSON.stringify(state))
    if(action.type==="setCityName"){
        newState.cityName=action.value;
        return newState
    }
    return state;
}